createMeteringPoint

fun createMeteringPoint(viewX: Double, viewY: Double, size: Double? = null): MeteringPoint

Creates a MeteringPoint to focus AE/AF/AWB on with CameraController.focusTo.

The coordinates are relative to this view (e.g. the location of a tap), and take orientation, scaling and cropping into account.

Parameters

viewX

The X coordinate within this view's coordinate system.

viewY

The Y coordinate within this view's coordinate system.

size

The size of the point within this view's coordinate system, or null for the default size.

Throws

If this view has no previewOutput yet.